package company.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

@TableName(value = "comments")
public class Comments {
    /**
     * 评论ID
     */
    @TableId(value = "CommentID", type = IdType.INPUT)
    private Integer commentid;

    /**
     * 帖子ID
     */
    @TableField(value = "PostID")
    private Integer postid;

    /**
     * 用户ID
     */
    @TableField(value = "UserID")
    private Integer userid;

    /**
     * 评论内容
     */
    @TableField(value = "CommentContent")
    private String commentcontent;

    /**
     * 评论日期
     */
    @TableField(value = "CommentDate")
    private Date commentdate;

    /**
     * 获取评论ID
     *
     * @return CommentID - 评论ID
     */
    public Integer getCommentid() {
        return commentid;
    }

    /**
     * 设置评论ID
     *
     * @param commentid 评论ID
     */
    public void setCommentid(Integer commentid) {
        this.commentid = commentid;
    }

    /**
     * 获取帖子ID
     *
     * @return PostID - 帖子ID
     */
    public Integer getPostid() {
        return postid;
    }

    /**
     * 设置帖子ID
     *
     * @param postid 帖子ID
     */
    public void setPostid(Integer postid) {
        this.postid = postid;
    }

    /**
     * 获取用户ID
     *
     * @return UserID - 用户ID
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * 设置用户ID
     *
     * @param userid 用户ID
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * 获取评论内容
     *
     * @return CommentContent - 评论内容
     */
    public String getCommentcontent() {
        return commentcontent;
    }

    /**
     * 设置评论内容
     *
     * @param commentcontent 评论内容
     */
    public void setCommentcontent(String commentcontent) {
        this.commentcontent = commentcontent;
    }

    /**
     * 获取评论日期
     *
     * @return CommentDate - 评论日期
     */
    public Date getCommentdate() {
        return commentdate;
    }

    /**
     * 设置评论日期
     *
     * @param commentdate 评论日期
     */
    public void setCommentdate(Date commentdate) {
        this.commentdate = commentdate;
    }
}